package com._58city.spark.app.redis;

import com._58city.spark.app.ext.JsonUtil;

/**
 * @author lihao
 * CPC Click的详细信息的Bean
 */
public class CPCClickDetails{
	
	private long clickTime;
	
	private String customerId;
	
	private String city1Name;
	
	private String cate2Name;
	
	private String platform;
	
	private long cash;
	
	private long cost;
	
	public CPCClickDetails() {
		super();
	}

	public CPCClickDetails(long clickTime, String customerId, String city1Name,
			String cate2Name, String platform, long cash, long cost) {
		super();
		this.clickTime = clickTime;
		this.customerId = customerId;
		this.city1Name = city1Name;
		this.cate2Name = cate2Name;
		this.platform = platform;
		this.cash = cash;
		this.cost = cost;
	}

	public long getClickTime() {
		return clickTime;
	}

	public void setClickTime(long clickTime) {
		this.clickTime = clickTime;
	}

	public String getCustomerId() {
		return customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}

	public String getCity1Name() {
		return city1Name;
	}

	public void setCity1Name(String city1Name) {
		this.city1Name = city1Name;
	}

	public String getCate2Name() {
		return cate2Name;
	}

	public void setCate2Name(String cate2Name) {
		this.cate2Name = cate2Name;
	}

	public String getPlatform() {
		return platform;
	}

	public void setPlatform(String platform) {
		this.platform = platform;
	}

	public long getCash() {
		return cash;
	}

	public void setCash(long cash) {
		this.cash = cash;
	}

	public long getCost() {
		return cost;
	}

	public void setCost(long cost) {
		this.cost = cost;
	}

	@Override
	public String toString() {
		return "CPCClickDetails [clickTime=" + clickTime + ", "
				+ (customerId != null ? "customerId=" + customerId + ", " : "")
				+ (city1Name != null ? "city1Name=" + city1Name + ", " : "")
				+ (cate2Name != null ? "cate2Name=" + cate2Name + ", " : "")
				+ (platform != null ? "platform=" + platform + ", " : "")
				+ "cash=" + cash + ", cost=" + cost + "]";
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		CPCClickDetails d = new CPCClickDetails(11, "aa", "北京", "二手车", "2", 10, 10);
		System.out.println(JsonUtil.toJson(d));

	}

}
